how to download file in laravel 8 delelete from directry

55

$d = '/myDirectory'
Storage::deleteDirectory($d);
Storage::makeDirectory($d);
Storage::delete(Storage::files('backgrounds'));

$dirs = Storage::directories('backgrounds');

foreach ($dirs as $dir) {
    Storage::deleteDirectory($dir);
}

Comments

Submit
0 Comments